<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
		<script type="text/javascript">
			var xiaoming = parseInt(prompt("请输入第一名学生成绩")) ;
			
			
			var xiaogang = parseInt(prompt("请输入第二名学生成绩")) ;
			
			
			var xiaohong = parseInt(prompt("请输入第三名学生成绩")) ;
			
			
			var avg=(xiaogang+xiaohong+xiaoming)/3;
			
			document.write("小明的成绩是"+xiaohong);
			document.write("小明的成绩是"+xiaoming);
			document.write("小明的成绩是"+xiaogang);
			document.write("平均成绩是"+avg);
			
			
			
			
		</script>
	</body>
</html>
